home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / comms / non-internet / samba / docs / domain.txt < prev    next >
Text File  |  1996-06-26  |  2KB  |  60 lines

  1. Samba now supports domain logons and network logon scripts. The
  2. support is still experimental, but it seems to work.
  3.  
  4. The support is also not complete. Samba does not yet support the
  5. sharing of the SAM database with other systems yet, or remote
  6. administration. Support for these kind of things should be added
  7. sometime in the future.
  8.  
  9. Using these features you can make your clients verify their logon via
  10. the Samba server and make clients run a batch file when they logon to
  11. the network. The latter is particularly useful.
  12.  
  13. To use domain logons you need to do the following:
  14.  
  15. 1) Setup nmbd and smbd and configure the smb.conf so that Samba is
  16. acting as the master browser. See INSTALL.txt and BROWSING.txt for
  17. details. 
  18.  
  19. 2) create a share called [netlogon] in your smb.conf. This share should
  20. be readable by all users, and probably should not be writeable. This
  21. share will hold your network logon scripts.
  22.  
  23. For example I have used:
  24.  
  25.    [netlogon]
  26.     path = /data/dos/netlogon
  27.     writeable = no
  28.     guest ok = yes
  29.  
  30.  
  31. 3) in the [global] section of smb.conf set the following:
  32.  
  33.    domain logons = yes
  34.    logon script = %U.bat
  35.  
  36. the choice of batch file is, of course, up to you. The above would
  37. give each user a separate batch file as the %U will be changed to
  38. their username automatically. The other standard % macros may also be
  39. used. You can make the btch files come from a subdirectory by using
  40. soemthing like:
  41.  
  42.    logon script = scripts\%U.bat
  43.  
  44. 4) create the batch files to be run when the user logs in. If the batch
  45. file doesn't exist then no batch file will be run. 
  46.  
  47. In the batch files you need to be careful to use DOS style cr/lf line
  48. endings. If you don't then DOS may get confused. I suggest you use a
  49. DOS editor to remotely edit the files if you don't know how to produce
  50. DOS style files under unix.
  51.  
  52. 5) Use smbclient with the -U option for some users to make sure that
  53. the \\server\NETLOGON share is available, the batch files are visible
  54. and they are readable by the users.
  55.  
  56. 6) you will probabaly find that your clients automatically mount the
  57. \\SERVER\NETLOGON share as drive z: while logging in. You can put some
  58. useful programs there to execute from the batch files.
  59.  
  60.